# coding=utf8

# Copyright 2018 JDCLOUD.COM
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This class is auto generated by the jdcloud code generator program.

from jdcloud_sdk.core.jdcloudrequest import JDCloudRequest


class ExecuteDomainCopyRequest(JDCloudRequest):
    """
    域名一键复制配置
    """

    def __init__(self, parameters, header=None, version="v1"):
        super(ExecuteDomainCopyRequest, self).__init__(
            '/executeDomainCopy', 'POST', header, version)
        self.parameters = parameters


class ExecuteDomainCopyParameters(object):

    def __init__(self,):
        """
        """

        self.domain = None
        self.copyDomains = None
        self.configKeys = None

    def setDomain(self, domain):
        """
        :param domain: (Optional) 源域名
        """
        self.domain = domain

    def setCopyDomains(self, copyDomains):
        """
        :param copyDomains: (Optional) 待复制的域名列表,多个以","分隔,且不超过20个
        """
        self.copyDomains = copyDomains

    def setConfigKeys(self, configKeys):
        """
        :param configKeys: (Optional) 待复制的配置项名字,区分大小写.配置项的含义：originConfig：回源配置信息;refererConfig：referer防盗链;urlAuthConfig：URL鉴权;userAgentConfig：UA访问控制;ipBlackListConfig：IP黑名单;cacheConfig：缓存配置;schemeFollowOriConfig：协议跟随回源;oriFollowRedirectConfig：回源跟随302;filterParamsConfig：过滤参数;rangeConfig：range回源;videoDraftConfig：视频拖拽;httpsConfig：Https配置;httpHeaderConfig：HttpHeader设置;otherConfig：其他配置
        """
        self.configKeys = configKeys

